package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class CustomerTraceHistory {
    private Long id;
    @DateTimeFormat(pattern = "yyyy_mm_dd")
    private Date traceTime;

    private String traceDetails;

    private SystemDictionaryItem traceType;

    private Integer traceResult;

    private Customer customer;

    private Employee inputUser;

    public String getTraceResultName() {
        switch (traceResult) {
            case 1:
                return "差";
            case 2:
                return "中";
            default:
                return "优";
        }
    }




}